import { defineConfig } from 'umi';
export default defineConfig({
  nodeModulesTransform: {
    type: 'none',
  },
  layout:false,

  routes: [
    {
      path:'/',
      component:'@/Layouts/index',
      routes:[
        {
            name:'控制台',
            path:'/',
            component:'@/pages/Dashboard',
            icon:'icon-youkuhuiyuan'
        },
        {
            name:'会员管理',
            path:'user',
            icon:'icon-youkuhuiyuan',
            routes:[
                {
                    name:'会员管理',
                    path:'user_user',
                    component:'@/pages/User/UserComponent', 
                    icon:'icon-youkuhuiyuan'
                },
                {
                    name:'会员余额变动管理',
                    path:'user_money',
                    icon:'icon-youkuhuiyuan'
                }
            ],

        },
        {
            name:'活动管理',
            path:'active',
            icon:'icon-youkuhuiyuan'
        },
        {
            name:'订单中心',
            path:'order',
            icon:'icon-youkuhuiyuan'
        },
        {
            name:'常规管理',
            path:'general',
            icon:'icon-youkuhuiyuan'
        },
        {
            name:'系统设置',
            path:'system',
            icon:'icon-youkuhuiyuan'
        },
        {
            name:'仓库管理',
            path:'storehouse',
            icon:'icon-youkuhuiyuan'
        },
        {
            name:'仓库奖励领取记录',
            path:'level_history',
            icon:'icon-youkuhuiyuan'
        },
        {
            name:'等级设置管理',
            path:'level',
            icon:'icon-youkuhuiyuan'
        },
        {
            name:'仓库商品类型',
            path:'storeHistory',
            icon:'icon-youkuhuiyuan'
        },
      ],
    },
  ],
  fastRefresh: {},
});
